package com.jacobson.core.framework.dialog

import android.content.Context
import android.os.Bundle

/**
 * ================================================
 *
 *  @author Wucz on 2018-09-06 11:06
 * ================================================
 */
interface DialogHandler {
    class DefaultDialogHandler : DialogHandler {
        override fun showDialog(context: Context, type: Int, args: Bundle?): Boolean = false

        override fun hideDialog(type: Int) = Unit
    }

    fun showDialog(context: Context, type: Int = 0, args: Bundle? = null): Boolean
    fun hideDialog(type: Int = 0)
}